<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Docs For Class DefaultEncoder</title>
  <link rel="stylesheet" href="../media/stylesheet.css" />
  <script src="../media/lib/classTree.js"></script>
<link id="webfx-tab-style-sheet" type="text/css" rel="stylesheet" href="../media/lib/tab.webfx.css" />
<script type="text/javascript" src="../media/lib/tabpane.js"></script>
  <script language="javascript" type="text/javascript" src="../media/lib/ua.js"></script>
<script language="javascript" type="text/javascript">
	var imgPlus = new Image();
	var imgMinus = new Image();
	imgPlus.src = "../media/images/plus.gif";
	imgMinus.src = "../media/images/minus.gif";
	
	function showNode(Node){
        switch(navigator.family){
        	case 'nn4':
        		// Nav 4.x code fork...
				var oTable = document.layers["span" + Node];
				var oImg = document.layers["img" + Node];
        		break;
        	case 'ie4':
        		// IE 4/5 code fork...
				var oTable = document.all["span" + Node];
				var oImg = document.all["img" + Node];
        		break;
        	case 'gecko':
        		// Standards Compliant code fork...
				var oTable = document.getElementById("span" + Node);
				var oImg = document.getElementById("img" + Node);
        		break;
        }
		oImg.src = imgMinus.src;
		oTable.style.display = "block";
	}
	
	function hideNode(Node){
        switch(navigator.family){
        	case 'nn4':
        		// Nav 4.x code fork...
				var oTable = document.layers["span" + Node];
				var oImg = document.layers["img" + Node];
        		break;
        	case 'ie4':
        		// IE 4/5 code fork...
				var oTable = document.all["span" + Node];
				var oImg = document.all["img" + Node];
        		break;
        	case 'gecko':
        		// Standards Compliant code fork...
				var oTable = document.getElementById("span" + Node);
				var oImg = document.getElementById("img" + Node);
        		break;
        }
		oImg.src = imgPlus.src;
		oTable.style.display = "none";
	}
	
	function nodeIsVisible(Node){
        switch(navigator.family){
        	case 'nn4':
        		// Nav 4.x code fork...
				var oTable = document.layers["span" + Node];
        		break;
        	case 'ie4':
        		// IE 4/5 code fork...
				var oTable = document.all["span" + Node];
        		break;
        	case 'gecko':
        		// Standards Compliant code fork...
				var oTable = document.getElementById("span" + Node);
        		break;
        }
		return (oTable && oTable.style.display == "block");
	}
	
	function toggleNodeVisibility(Node){
		if (nodeIsVisible(Node)){
			hideNode(Node);
		}else{
			showNode(Node);
		}
	}
</script>
<!-- template designed by Julien Damon based on PHPEdit's generated templates, and tweaked by Greg Beaver -->
<body bgcolor="#ffffff" ><!-- Start of Class Data -->
<h2>
	Class DefaultEncoder
</h2> (line <span class="linenumber">51</span>)
<div class="tab-pane" id="tabPane1">
<script type="text/javascript">
tp1 = new WebFXTabPane( document.getElementById( "tabPane1" ));
</script>

<div class="tab-page" id="Description">
<h2 class="tab">Description</h2>
<pre>
</pre>
<p>
	<b><i>Located in File: <a href="_reference---DefaultEncoder.php.html">/reference/DefaultEncoder.php</a></i></b><br>
</p>
<!-- ========== Info from phpDoc block ========= -->
<h5>Reference implementation of the Encoder interface.</h5>
<ul>
		<li><strong>author:</strong> - Mike Boberski &lt;<a href="mailto:boberski_michael@bah.com">boberski_michael@bah.com</a>&gt;</li>
		<li><strong>author:</strong> - Linden Darling &lt;<a href="mailto:Linden.Darling@jds.net.au">Linden.Darling@jds.net.au</a>&gt;</li>
		<li><strong>author:</strong> - jah &lt;<a href="mailto:jah@jahboite.co.uk">jah@jahboite.co.uk</a>&gt;</li>
		<li><strong>version:</strong> - Release: @package_version@</li>
		<li><strong>copyright:</strong> - 2009-2010 The OWASP Foundation</li>
		<li><strong>link:</strong> - <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a></li>
		<li><strong>license:</strong> - <a href="http://www.opensource.org/licenses/bsd-license.php">New BSD license</a></li>
	</ul>
<br /><hr />
</div>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "Description" ) );</script>
<div class="tab-page" id="tabPage1">

<h2 class="tab">Class Variables</h2>
<!-- ============ VARIABLE DETAIL =========== -->
<strong>Summary:</strong><br />
<hr />
<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage1" ) );</script>
</div>
<div class="tab-page" id="constantsTabpage">

<h2 class="tab">Class Constants</h2>
<!-- ============ VARIABLE DETAIL =========== -->
<strong>Summary:</strong><br />
<hr />
<script type="text/javascript">tp1.addTabPage( document.getElementById( "constantsTabpage" ) );</script>
</div>
<div class="tab-page" id="tabPage2">
<h2 class="tab">Method Detail</h2>
<!-- ============ METHOD DETAIL =========== -->
<strong>Summary:</strong><br />
<div class="method-summary">
    <div class="method-definition">
            <span class="method-result">does</span>
        <a href="#method__construct" title="details" class="method-name">__construct</a>
        ([<span class="var-type">array</span>&nbsp;<span class="var-name">$_codecs</span> = <span class="var-default">null</span>])
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodcanonicalize" title="details" class="method-name">canonicalize</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$strict</span> = <span class="var-default">true</span>])
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methoddecodeFromBase64" title="details" class="method-name">decodeFromBase64</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methoddecodeFromURL" title="details" class="method-name">decodeFromURL</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForBase64" title="details" class="method-name">encodeForBase64</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$wrap</span> = <span class="var-default">true</span>])
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForCSS" title="details" class="method-name">encodeForCSS</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForHTML" title="details" class="method-name">encodeForHTML</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForHTMLAttribute" title="details" class="method-name">encodeForHTMLAttribute</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForJavaScript" title="details" class="method-name">encodeForJavaScript</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForOS" title="details" class="method-name">encodeForOS</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$codec</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForSQL" title="details" class="method-name">encodeForSQL</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$codec</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForURL" title="details" class="method-name">encodeForURL</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForVBScript" title="details" class="method-name">encodeForVBScript</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForXML" title="details" class="method-name">encodeForXML</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForXMLAttribute" title="details" class="method-name">encodeForXMLAttribute</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodencodeForXPath" title="details" class="method-name">encodeForXPath</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$input</span>)
        </div>
</div>
<hr />
<A NAME='method_detail'></A>


<a name="method__construct" id="method__construct"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/Constructor.gif" border="0" /> <strong class="method">Constructor __construct</strong> (line <span class="linenumber">89</span>)
 </h4> 
<h4><i>does</i> <strong>__construct(
[array
$_codecs = null])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Encoder constructor.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>array $_codecs</strong>: An array of Codec instances which will be used for                        canonicalization.</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - not return a value.</li>
		</ul>
</div>
<a name="methodcanonicalize" id="methodcanonicalize"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method canonicalize</strong> (line <span class="linenumber">134</span>)
 </h4> 
<h4><i>void</i> <strong>canonicalize(

$input, [
$strict = true])</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodcanonicalize">Encoder::canonicalize()</a></dt>
						<dd>Data canonicalization.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
			<li><strong> $strict</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methoddecodeFromBase64" id="methoddecodeFromBase64"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method decodeFromBase64</strong> (line <span class="linenumber">421</span>)
 </h4> 
<h4><i>void</i> <strong>decodeFromBase64(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methoddecodeFromBase64">Encoder::decodeFromBase64()</a></dt>
						<dd>Decode data encoded with Base64 encoding.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methoddecodeFromURL" id="methoddecodeFromURL"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method decodeFromURL</strong> (line <span class="linenumber">378</span>)
 </h4> 
<h4><i>void</i> <strong>decodeFromURL(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methoddecodeFromURL">Encoder::decodeFromURL()</a></dt>
						<dd>Decode from URL. Implementations should first canonicalize and detect any  double-encoding. If this check passes, then the data is decoded using URL  decoding.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForBase64" id="methodencodeForBase64"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForBase64</strong> (line <span class="linenumber">409</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForBase64(

$input, [
$wrap = true])</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForBase64">Encoder::encodeForBase64()</a></dt>
						<dd>Encode data with Base64 encoding.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
			<li><strong> $wrap</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForCSS" id="methodencodeForCSS"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForCSS</strong> (line <span class="linenumber">207</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForCSS(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForCSS">Encoder::encodeForCSS()</a></dt>
						<dd>Encode data for use in Cascading Style Sheets (CSS) content.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForHTML" id="methodencodeForHTML"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForHTML</strong> (line <span class="linenumber">219</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForHTML(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForHTML">Encoder::encodeForHTML()</a></dt>
						<dd>Encode data for use in HTML using HTML entity encoding</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForHTMLAttribute" id="methodencodeForHTMLAttribute"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForHTMLAttribute</strong> (line <span class="linenumber">231</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForHTMLAttribute(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForHTMLAttribute">Encoder::encodeForHTMLAttribute()</a></dt>
						<dd>Encode data for use in HTML attributes.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForJavaScript" id="methodencodeForJavaScript"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForJavaScript</strong> (line <span class="linenumber">243</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForJavaScript(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForJavaScript">Encoder::encodeForJavaScript()</a></dt>
						<dd>Encode data for insertion inside a data value in JavaScript. Putting user  data directly inside a script is quite dangerous. Great care must be  taken to prevent putting user data directly into script code itself, as  no amount of encoding will prevent attacks there.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForOS" id="methodencodeForOS"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForOS</strong> (line <span class="linenumber">279</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForOS(

$codec, 
$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForOS">Encoder::encodeForOS()</a></dt>
						<dd>Encode for an operating system command shell according to the selected  codec (appropriate codecs include the WindowsCodec and UnixCodec).</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $codec</strong>: </li>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForSQL" id="methodencodeForSQL"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForSQL</strong> (line <span class="linenumber">267</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForSQL(

$codec, 
$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForSQL">Encoder::encodeForSQL()</a></dt>
						<dd>Encode input for use in a SQL query, according to the selected codec  (appropriate codecs include the MySQLCodec and OracleCodec).</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $codec</strong>: </li>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForURL" id="methodencodeForURL"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForURL</strong> (line <span class="linenumber">335</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForURL(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForURL">Encoder::encodeForURL()</a></dt>
						<dd>Encode for use in a URL. This method performs &lt;a  href=&quot;http://en.wikipedia.org/wiki/Percent-encoding&quot;&gt;URL encoding&lt;/a&gt;  on the entire string.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForVBScript" id="methodencodeForVBScript"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForVBScript</strong> (line <span class="linenumber">255</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForVBScript(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForVBScript">Encoder::encodeForVBScript()</a></dt>
						<dd>Encode data for insertion inside a data value in a Visual Basic script.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForXML" id="methodencodeForXML"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForXML</strong> (line <span class="linenumber">311</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForXML(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForXML">Encoder::encodeForXML()</a></dt>
						<dd>Encode data for use in an XML element. The implementation should follow  the &lt;a href=&quot;http://www.w3schools.com/xml/xml_encoding.asp&quot;&gt;XML Encoding  Standard&lt;/a&gt; from the W3C.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForXMLAttribute" id="methodencodeForXMLAttribute"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForXMLAttribute</strong> (line <span class="linenumber">323</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForXMLAttribute(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForXMLAttribute">Encoder::encodeForXMLAttribute()</a></dt>
						<dd>Encode data for use in an XML attribute. The implementation should follow  the &lt;a href=&quot;http://www.w3schools.com/xml/xml_encoding.asp&quot;&gt;XML Encoding  Standard&lt;/a&gt; from the W3C.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodencodeForXPath" id="methodencodeForXPath"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method encodeForXPath</strong> (line <span class="linenumber">299</span>)
 </h4> 
<h4><i>void</i> <strong>encodeForXPath(

$input)</strong></h4>

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../ESAPI/Encoder.html#methodencodeForXPath">Encoder::encodeForXPath()</a></dt>
						<dd>Encode data for use in an XPath query.</dd>
					</dl>
		<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $input</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage2" ) );</script></div>
<div class="tab-page" id="iVars">
<h2 class="tab">Inherited Variables</h2>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "iVars" ) );</script>
<!-- =========== VAR INHERITED SUMMARY =========== -->
<A NAME='var_inherited_summary'><!-- --></A>
<h3>Inherited Class Variable Summary</h3>

	</div>
<div class="tab-page" id="iMethods">
<h2 class="tab">Inherited Methods</h2>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "iMethods" ) );</script>
<!-- =========== INHERITED METHOD SUMMARY =========== -->
<A NAME='functions_inherited'><!-- --></A>
<h3>Inherited Method Summary</h3>

	</div>
</div>
<script type="text/javascript">
//<![CDATA[

setupAllTabs();

//]]>
</script>
	<div id="credit">
		<hr />
		Documentation generated on Fri, 21 May 2010 08:46:04 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</div>
</body>
</html>